﻿using System;

namespace ExFlash.Actions
{
    public class ActionWaitForFrame : ActionRecord
    {
        public ushort Frame
        {
            get;
            private set;
        }

        public Byte SkipCount
        {
            get;
            private set;
        }

        public ActionWaitForFrame(ushort len)
            : base((byte)ActionCodes.ActionWaitForFrame, len)
        {
        }

        public override void SwfDeserialize(BinaryBitReader reader)
        {
            Frame = reader.ReadUInt16();

            SkipCount = reader.ReadByte();
        }

        public override void SwfSerialize(byte[] arr, ref int offset)
        {
            throw new NotImplementedException();
        }
    }
}
